#!/bin/bash
pid=$(</var/run/proxy-master.pid)
if test -n "$pid"
then
    kill $pid
    sleep 1

    # destroy them
    pkill -9 -P $pid
    kill -9 $pid
fi
uwsgi --ini /opt/proxy/api/uwsgi_manage/uwsgi.ini
